
/**
 * @brief    Defines a shape basis vector by relating a design variable
 * identification number (DVID) to columns of a displacement matrix.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2025.04.11
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Input/Design/DesignBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DVSHAPData {
  struct SFACTSData {
    SG::DataStructure::Common::Id m_DVID =
        0;  ///< Design variable id defined on DESVAR entry
    SG::DataStructure::Common::Id m_COLID =
        0;  ///< Column number of the displacement matrix
    SG::DataStructure::Common::Real m_SF =
        0.0;  ///< Scaling factor to be applied to column COLID
  };

  SG::DataStructure::Common::Id m_domainId = 0;  ///<

  std::vector<SFACTSData> m_SFACTSList;
};

///@{ @brief operator override
DECLSPEC bool operator==(const DVSHAPData::SFACTSData& val1,
                         const DVSHAPData::SFACTSData& val2);

DECLSPEC bool operator==(const DVSHAPData& val1, const DVSHAPData& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
